<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $keywords_array['k_title'] ?></title>
<meta name="keywords" content="<?php echo $keywords_array['k_keywords'] ?>" />
<meta name="description" content="<?php echo $keywords_array['k_description'] ?>" />
<link href="/public/www/<?php echo CFG_TEMPLETS_STYLE;?>/style.css" type="text/css" rel="stylesheet" />
<link href="/public/www/<?php echo CFG_TEMPLETS_STYLE;?>/base.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/public/js/calendar/jquery.min.js"></script><!--点击预订时候用到-->
<link href="<?php echo ZHUNA_ORDER_API;?>room.utf8.css" rel="stylesheet" type="text/css" />
<script src="<?php echo ZHUNA_ORDER_API;?>room.utf8.js" type="text/javascript"></script>
<script src="/public/js/jquery-1.7.2.js" type="text/javascript"></script>
</head>
<body>
<?php $this->load->view('inc/header');?>
<div class="middle">
       <?php $this->load->view('inc/nav');?>
		<div class="main">
		           <div class="xdh">
		                <span class="bg"></span><span class="sy"><a href="/">首页</a></span>
		                <span class="wzdt"></span><span class="sy"><a href="<?php echo site_url("/allcity") ?>">城市酒店</a></span>
		                <span class="wzdt"></span><span class="sy"><a href="<?php echo site_url("/onecity/$cityid") ?>"><?php echo $cityname ?>酒店</a></span>
		                <span class="wzdt"></span><span class="sy">
		                <?php  
		                	$condition = $cityname;
		                	if (!empty($searchArray['key'])) {
		                		$condition .= $searchArray['key']."附近" ;
		                	}	
		                	if (!empty($searchArray['hn'])) {
		                		$searchArray['hn'] = str_replace('酒店','',$searchArray['hn']);
		                	}
		                	$condition .= $searchArray['hn']."酒店" ;
		                	echo $condition = $condition.'预订';
		                ?>
		                </span>
		           </div>
		           <div class="main_bottom">
		                <div class="jdcity">
                            <div style="float:right;" id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
                                <span class="bds_more">分享到：</span>
                                <a class="bds_qzone"></a>
                                <a class="bds_tsina"></a>
                                <a class="bds_tqq"></a>
                                <a class="bds_renren"></a>
                                <a class="shareCount"></a>
                            </div>
                            <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=234336" ></script>
                            <script type="text/javascript" id="bdshell_js"></script>
                            <script type="text/javascript">document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();</script>
                            <!-- Baidu Button END -->  
                          </span>
                          <span><h1><?php echo $cityname?>酒店<font class="f_b_f00">预订</font></h1></span>
		                  <span class="jdsz"><font class="f_b1_f00"><?php echo $allnums ?></font>家酒店满足筛选条件 <!--共有<font class="f_b1_f00">123654 </font>家酒店&nbsp;&nbsp;<font class="f_b1_f00">5324 </font>条入住客人点评--></span>
		                  
		                </div>    
		                <!--载入搜索内容-->
                        <?php $this->load->view('inc/search');?>
                        <div class="search_jd" id="list_filter">
		                   <div class="s_j_top">
		                   </div>
		                   <div class="s_j_plate">
		                       <div class="sj_p_top"></div>
		                       <div class="sj_p_middle">
		                           <dl>
		                               <dt>
		                               著名商圈
		                               </dt>
		                               <dd id="list_filter" >
                                          <em class="more" ><a href="javascript:void(0)" id="cbd">更多</a></em>
		                                  <span <?php if($cbd_id == ''){?> class="s_j_bx" <?php } ?>><a href="<?php echo site_url("{$list_url['cbd']}") ?>">不限</a></span>
		                                  <ul>    
                                             <?php foreach ($cbd_list as $key=>$val){ ?>  
		                                     <li><span <?php if ($cbd_id == $val['cbd_id']) { echo "class='s_j_bx'"; } ?> ><a href="<?php echo site_url("{$list_url['cbd']}-cbd_id-{$val['cbd_id']}") ?>"><?php echo $val['CBD_Name'] ?></a></span></li>
                                             <?php } ?>
		                                  </ul>
		                               </dd>         
		                           </dl>
		                           <dl>
		                               <dt>
		                               酒店级别
		                               </dt>
		                               <dd>
		                                  <span <?php if($rank == ''){?> class="s_j_bx" <?php } ?>><a href="<?php echo site_url("{$list_url['rank']}") ?>">不限</a></span>
                                          <ul>
                                            <li><span 
                                            <?php if ($rank ==  2){ ?>
                                            class = "s_j_bx"
                                            <?php } ?> ><a href="<?php echo site_url("{$list_url['rank']}-rank-2") ?>">二星级/经济型</a></span></li>
                                            <li><span 
                                            <?php if ($rank ==  3){ ?>
                                            class = "s_j_bx"
                                            <?php } ?> ><a href="<?php echo site_url("{$list_url['rank']}-rank-3") ?>">三星级/舒适型</a></span></li>
                                            <li><span 
                                            <?php if ($rank ==  4){ ?>
                                            class = "s_j_bx"
                                            <?php } ?> ><a href="<?php echo site_url("{$list_url['rank']}-rank-4") ?>">四星级/高档型</a></span></li>
                                            <li><span
                                            <?php if ($rank ==  5){ ?>
                                            class = "s_j_bx"
                                            <?php } ?> ><a href="<?php echo site_url("{$list_url['rank']}-rank-5") ?>">五星级/豪华型</a></span></li>
		                                  </ul>
		                               </dd>
		                           </dl>
		                           <dl>
		                               <dt>
		                               酒店价格
		                               </dt>
		                               <dd>
		                                  <span <?php if($maxprice == ''){?> class="s_j_bx" <?php } ?>><a href="<?php echo site_url("{$list_url['hotelprice']}") ?>">不限</a></span>
		                                  <ul>
                                             <?php
                                             	$i = 0; 
                                             	foreach ($price_array as $key=>$val){ 
                                             		$i++;
                                             ?>   
		                                     <li><span <?php $price_array = explode('-', $key); if($minprice==$price_array[0] && $maxprice==$price_array[1]){echo "class='s_j_bx'";} ?>><a href="<?php echo site_url("{$list_url['hotelprice']}-priceid-{$i}") ?>"><?php echo $val ?></a></span></li>
		                                     <?php } ?>
		                                  </ul>
		                               </dd>
		                           </dl>
		                           <dl>
		                               <dt>
		                               品牌连锁
		                               </dt>
		                               <dd>
		                                  <em class="more"><a href="javascript:void(0)" id="chain">更多</a></em>
		                                  <span <?php if($chain_id == ''){?> class="s_j_bx" <?php } ?>><a href="<?php echo site_url("{$list_url['chain']}") ?>">不限</a></span>
		                                  <ul>
                                             <?php foreach ($chain_list as $key=>$val){ ?>   
		                                     <li><span <?php if ($chain_id ==  $val['id']){echo "class='s_j_bx'"; } ?>><a href="<?php echo  site_url("{$list_url['chain']}-chain_id-{$val['id']}") ?>"><?php echo $val['lsname']; ?></a></span></li>
		                                     <?php } ?>
		                                  </ul>
		                               </dd>
		                           </dl>
		                       </div>
		                       <div class="sj_p_bottom"></div>
		                   </div>
		                </div>
		                <div class="jdlist">
		                    <div class="jdlist_left<?php if(CFG_TEMPLETS_LAYOUT) echo 1 ;?>">
		                        <div class="jdplate_dh">
                                    <span <?php if($px == 1){echo "class='current'";} ?>><a href="<?php echo site_url("{$list_url['px']}-px-1") ?>">默认</a></span>
		                            <span <?php if($px == 3){echo "class='current'";} ?>><a href="<?php echo site_url("{$list_url['px']}-px-3") ?>">人气</a></span>
		                            <span <?php if($px == 2){echo "class='current'";} ?>><a href="<?php echo site_url("{$list_url['px']}-px-2") ?>">价格</a></span>
		                            <span <?php if($px == 4){echo "class='current'";} ?>><a href="<?php echo site_url("{$list_url['px']}-px-4") ?>">好评</a></span>
		                        </div>
                                
		                        <div class="hotel_list">
                                    <?php 
                                    if(count($list) > 0 ) {
                                        foreach ($list as $val){
                                            $df_haoping = $this->tool->hoteldianping($val['df_haoping'],3)    
                                    ?>
		                            <div class="hot_li_plate">
    		                                <div class="hot_li_p_top">
    		                                    <span class="right"><dfn>¥</dfn><em><?php echo $val['min_jiage']; ?><font class="yuan_f00">元</font></em>起</span>
    		                                    <span class="kuang"></span>
    		                                    <span><strong><a href="<?php echo site_url("/hotelinfo/{$val['ID']}") ?>" title="<?php echo $val['HotelName']; ?>" target="_blank"><?php echo $val['HotelName']; ?></a></strong></span>
    		                                    <span><?php if ($val['xingji']>1) { ?><img width="86" height="16" src="/public/www/blue/images/xj<?php echo $val['xingji']; ?>.gif"><?php } ?></span>
    		                                </div>
    		                                <div class="hot_li_p_bottom">
    		                                    <div class="hot_li_top">
    		                                        <dl>
    		                                            <dt>
    		                                            <span><a href="<?php echo site_url("/hotelinfo/{$val['ID']}") ?>" title="<?php echo $val['HotelName']; ?>" target="_blank"><img src="<?php echo $val['Picture']; ?>" width="134" height="100" /></a></span><span class="yy"></span>
    		                                            </dt>
    		                                            <dd>
    		                                               <ul>
    		                                                  <li>
    		                                                  		酒店位置：
    		                                                  		<?php if ($val['place_id'] != '') { ?>
    		                                                  		<font style="color:#6f7c99;"><a href="<?php echo site_url("{$list_url['cbd']}-cbd_id-{$val['place_id']}") ?>"><?php echo $val['place']; ?></a></font>
    		                                                  		<?php } else { ?>
    		                                                  			<?php echo $val['place']; ?>	
    		                                                  		<?php } ?>
    		                                                  		<a id="Map_Show<?php echo $val['ID'];?>" href="/map/index?lng=<?php echo $val['baidu_lng']; ?>&lat=<?php echo $val['lat']; ?>">
    		                                                  			<img class="le_20" src="/public/www/blue/images/mag_img.gif" width="16" height="16" />查看地图
    		                                                  		</a>
    		                                                  </li>
    		                                                  <li>提供服务：<font style="color:#6f7c99;"><?php if (!empty($val['service_pic'])) { foreach ($val['service_pic'] as $key1=>$val1) { ?><img title="<?php echo $val1[1] ?>" src="/public/images/<?php echo $val1[0] ?>" width="16" height="16" /><?php } } else { ?>服务信息未知<?php } ?></font>
    		                                                  <li>酒店地址：<font style="color:#6f7c99;"><?php echo $val['Address']; ?></font></li>
    		                                                  <li><font class="f_999"><?php if (!empty($val['juli'])) { ?><font class="f_b1_f00"><?php echo $val['juli']; ?>&nbsp;&nbsp;&nbsp;&nbsp;</font><?php } ?>最近有点评<font class="f_b1_f00"><?php echo $df_haoping[1][3]; ?>条</font></font></li>
    		                                               </ul>
    		                                            </dd>
    		                                            <dd class="pingfen"><span class="pf01"><font style="font-size:16px;"><?php echo $df_haoping[0]; ?></font>分</span><span class="f_hui">5分</span>
    		                                            </dd>
    		                                        </dl>
    		                                    </div>
    		                                </div>
    		                                <div class="hot_li_bottom">
    		                                    <div id="h<?php echo $val['ID']; ?>">
                                                    <p style="text-align:center;"><img src="/public/www/default/images/loadprice.gif" /></p>
                                                </div>
    		                                </div>
		                            </div>
                                    <?php } ?>
                                    <?php } else { echo '<div align="center" style="color:red;"><img src="/public/images/nohotel.jpg" /></div>'; }?>
		                            <div class="fy">
		                              <?php echo $page ?>          
		                            </div>
		                        </div>
		                    </div>
		                    <div class="jdlist_right<?php if(CFG_TEMPLETS_LAYOUT) echo 1 ;?>">
			                    <?php $this->load->view('modules/'.$layout[0][1]);?>
			                    <?php $this->load->view('modules/'.$layout[1][1]);?>
			                    <?php $this->load->view('modules/'.$layout[2][1]);?>
			                    <?php $this->load->view('modules/'.$layout[3][1]);?>   
		                    </div>
		                </div>
		           </div>
		  </div>       
</div>
<div class="inbz"><img src="/public/www/default/images/inbz.jpg" width="950" height="57" /></div>
<?php $this->load->view('inc/footer');
$ci = & get_instance();
$ci->load->library('tool');
$ci->tool->zhuna_rewrite(CFG_REWRITE);?>
<form action="/ebook/index" method="get" target="_blank" name="doBook" id="doBook" >
    <input name="hid" type="hidden"/>
    <input name="rid" type="hidden" />
    <input name="pid" type="hidden" />
    <input name="tm1" type="hidden" value="<?php echo $searchArray['tm1'] ?>" />
    <input name="tm2" type="hidden" value="<?php echo $searchArray['tm2'] ?>" />
</form>
<script src="/public/js/fancybox/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
<link href="/public/js/fancybox/jquery.fancybox-1.3.4.css" type="text/css" rel="stylesheet" />
<script>
$(function(){
	//更多默认展开和点击展开
	var cbd_id = "<?php echo $cbd_id ?>";
	if (cbd_id > 0) {
		$("#cbd").parent().parent().attr("style","height:26px");	
		$("#cbd").attr("class",'more');
		$("#cbd").parent().attr("class",'more');
	}
	var chain_id = "<?php echo $chain_id ?>";
	if (chain_id >0 ) {
		$("#chain").parent().parent().attr("style","height:26px");	
		$("#chain").attr("class",'more');
		$("#chain").parent().attr("class",'more');
	}
	$("#list_filter dl dd a em[class!='more'][class!='more1']").click(function(){$(this).loading({div:"#mainContent"})});
	$("#list_filter dl dd em a").click(function(){
		var s=($(this).attr("class")=="more1")?"more":"more1";
		if(s=="more1"){
		$(this).parent().parent().attr("style","height:auto");}else{$(this).parent().parent().css("height","26px");}
		$(this).attr("class",s);
		$(this).parent().attr("class",s);
	});
    show_map();
});
</script>
<script type="text/javascript">
loadPrice('<?php echo $hoteIdStr; ?>','<?php echo $searchArray['tm1'] ?>','<?php echo $searchArray['tm2'] ?>');
function show_map()
{
    var ids = "<?php echo $hoteIdStr; ?>";
    var id_array = new Array();
    id_array = ids.split(',');
    for(i=0;i<id_array.length;i++){
        $("#Map_Show"+id_array[i]).fancybox({
            'width'             : 580,
            'height'            : 480,
            'autoScale'         : false,
            'transitionIn'      : 'none',
            'transitionOut'     : 'none',
            'type'              : 'iframe',
            'overlayOpacity' : '0.8',
            'overlayColor' : '#000'        
        });
    }	
}
</script>
</body>
</html>